import service from '@/utils/request.js'
import { uploadRequest} from '@/utils/request.js'

/**
 * @获取我奖金详情
 */
export function getMyBonus(data) {
  return service({
    url: '/user/bonus/getMyBonus',
    method: 'post',
    data
  })
}

/**
 * @确认奖金
 */
export function confirmBonus(data) {
  return service({
    url: '/user/bonus/confirmMoney',
    method: 'post',
    data
  })
}

/**
 * @上传附件文档
 */
export function uploadDissentFileApi(data) {
  return uploadRequest({
    url: '/user/uploadFile',
    method: 'post',
    data
  })
}

/**
 * @提交异议
 */
export function submitDispute(data) {
  return service({
    url: '/user/bonus/addErrorLog',
    method: 'post',
    data
  })
}